package com.whynot.frame.ms;

import org.springframework.core.env.Environment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.context.support.StandardServletEnvironment;

import java.util.Map;

@SpringBootApplication
@EnableConfigurationProperties
@EnableAutoConfiguration
@EnableTransactionManagement(order = 3)
@ComponentScan("com.whynot.frame")
public class SpringBootMsApplication {
	public static void main(String[] args) {
		/*ConfigurableApplicationContext context=SpringApplication.run(SpringBootMsApplication.class, args);
		Map<String,Object> map=context.getEnvironment().getSystemProperties();
		System.out.print(context.getEnvironment().getPropertySources());*/
		//System.out.println(map);

		SpringApplication.run(SpringBootMsApplication.class, args);
	}
}
